<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2019/7/2
  Time: 19:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>读者管理</title>
    <link rel="stylesheet" href="css/style.css">
    <script src="js/jquery-1.12.4.js"></script>
    <script src="js/common.js"></script>
</head>
<body>
<div class="main">
    <div class="top">
        <h3>欢迎使用图书管理系统</h3>
        <h4><img src="images/timg.png" alt="">&nbsp;&nbsp;&nbsp;欢迎您*</h4>
    </div>
    <div class="cont">
        <div class="left">
            <ul>
                <li>&nbsp;<a href="#">图书管理</a><span>&gt;</span></li>
                <li>&nbsp;<a href="#">读者管理</a><span>&gt;</span></li>
            </ul>
        </div>
        <div class="right">
            <div class="r">
                <div class="r-c">&nbsp;&nbsp;读者管理</div>
                <div class="r-d">
                    <input type="button" value="添加读者" class="btn" style="width: 150px">
                </div>
            </div>
            <table cellpadding="0" cellspacing="0" border="1" align="center">
                <thead>
                <tr>
                    <td>账号</td>
                    <td>姓名</td>
                    <td>邮箱</td>
                    <td>手机号</td>
                    <td>最大借阅数</td>
                    <td>操作</td>
                </tr>
                </thead>
                <tbody>
                <c:forEach items="${usersList}" var="user" varStatus="status">

                    <tr <c:if test="${status.count % 2 == 0}" ></c:if>>
                        <td>${user.getuID()}</td>
                        <td>${user.getuName()}</td>
                        <td>${user.getuEmail()}</td>
                        <td>${user.getuPhone()}</td>
                        <td>${user.max_num()}</td>
                        <td>
                            <a href="DelUserServlet?bID=${books.getbID()}" >删除</a>
                            <a href="goEditBookServlet?bID=${books.getbID()}" >修改</a>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
</div>
<div class="display ccc" id="display">
    <div class="display-c">
        <p>添加新用户</p>
        <hr>
        <span>账号</span><input type="text" placeholder="请输入账号"><br>
        <span>姓名</span><input type="text" placeholder="请输入姓名"><br>
        <span>邮箱</span><input type="text" placeholder="请输入邮箱"><br>
        <span>手机号</span><input type="text" placeholder="请输入手机号"><br>
        <span>密码</span><input type="text" placeholder="请输入密码"><br>
        <span>最大借阅数</span><input type="text" placeholder="请输入借阅数"><br>
        <span class="btn2"><button>提交</button><button>关闭</button></span>
    </div>
</div>
<div id="return" title="点击返回首页">
    <==
</div>

</body>
</html>
